# Wave Pattern
---
This C++ program creates wave interference patterns and visualizes them in a png image. From this png image a heightmap can be produced and transformed into a 3D mesh with a tool like [hmm](https://github.com/fogleman/hmm).

> hmm -z 60 --level -x 2 WavePattern.png WavePattern.stl

For the generation of the image the [CImg Library](https://www.cimg.eu) is used. Make sure the X11 lib is installed (*> apt install libx11-dev*).


![Wave Pattern](img/WavePattern05x.png)

## License
---
Distributed under the Apache License Version 2.0.

## References
---
* https://www.omnicalculator.com/physics/harmonic-wave-equation#what-is-a-harmonic-wave
* https://stackoverflow.com/questions/25883703/how-to-use-cimg-and-its-basic-functions
* https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#Surface
* https://github.com/fogleman/hmm
* https://www.michaelfogleman.com/projects/hmm/
* https://www.cimg.eu

## Author
---
* kaulquappe (https://bitbucket.org/kaulquappe)
